﻿using System;
using System.Data;
using System.Collections.Generic;
namespace ZX.HIS.IDAL
{
    /// <summary>
    /// 接口层RegistType
    /// </summary>
    public interface IRegistType
    {
        #region 自写方法

        /// <summary>
        /// 挂号项表添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int RegistTypelAdd(ZX.HIS.Model.RegistType model);
        /// <summary>
        /// 分页显示
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="StrOrder"></param>
        /// <param name="StrWhere"></param>
        /// <returns></returns>
        List<ZX.HIS.Model.RegistType> RegistTypeShow(int PageIndex, int PageSize, string RegistTypeName, int HospitalId);

        /// <summary>
        /// 查询总数量
        /// </summary>
        /// <param name="StrWher"></param>
        /// <returns></returns>
        int RegistTypeCount(int HospitalId);
        /// <summary>
        /// 伪删除挂号
        /// </summary>
        /// <param name="IDS"></param>
        /// <param name="DeparStarte"></param>
        /// <returns></returns>
        int RegistTypeUpd(ZX.HIS.Model.RegistType mode);
        /// <summary>
        /// 挂号类型的所有显示
        /// </summary>
        /// <returns></returns>
        List<ZX.HIS.Model.RegistType> RegistTypeList(int HospitalId, int RegistTypeId);

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        ZX.HIS.Model.RegistType GetRegistTypeModel(int RegistTypeId);


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        ZX.HIS.Model.RegistType DataRowToModel(DataRow row);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="med"></param>
        /// <returns></returns>
        int RegistTypeUpt(ZX.HIS.Model.RegistType med);

        List<ZX.HIS.Model.RegistType> list();
      
        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(int RegistTypeId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.RegistType model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.RegistType model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int RegistTypeId);
        //bool DeleteList(string RegistTypeIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.RegistType GetModel(int RegistTypeId);
        //ZX.HIS.Model.RegistType DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
        #endregion  成员方法
        #region  MethodEx

        #endregion  MethodEx
    }
}
